package com.wxxymakers.grademark.model.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wxxymakers.grademark.model.entity.WxItem;
import com.wxxymakers.grademark.model.entity.WxItemPlace;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface WxItemPlaceMapper extends BaseMapper<WxItemPlace> {

    @Select("select * from wx_item_place where item_id = #{itemId}")
    @ResultMap("com.wxxymakers.grademark.model.mapper.WxItemPlaceMapper.BaseResultMap")
    List<WxItemPlace> selectByItemId(int itemId);

    WxItemPlace selectByIdNJ(@Param("id") Integer id);
}